<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>

    <style>  
        .zjc{
            width: 34%;
            display: flex;
            justify-content: start;
        }
        
       .choose{
        width: 100%;
            /* background-color: aqua */
       } 

    ul{
    list-style-type: none; /* 移除项目符号 */
    }   

       
    </style>
</head>
<body>
    <div id="app">
        <hr>
        <div>请选择你喜欢的专栏</div>
        <div class="zjc">
            <div class="choose" v-for="(item,index) in list" :key="index">
                <input v-model="isChoose" :value="item"  type="checkbox">{{item}}
            </div>
            
        </div>
        <ul>
            <li v-for="(item,index) in isChoose" :key="index">{{item}}</li>
        </ul>
    </div>

    <script src="../vue.js"></script>
    <script>
        new Vue({
            el:'#app',
            data:{
                list:["科幻", "喜剧", "动漫", "冒险", "科技", "军事", "娱乐", "奇闻"],
                isLike:true,
                isChoose:[]
            },
            methods:{
                show(){ 
                    console.log(this.isLike)

                }
                
            }
        })
    </script>
</body>
</html>